<nz-modal [(nzVisible)]="Visible" [nzWidth]="width" [nzTitle]="popTitle" (nzOnCancel)="Cancel()" (nzOnOk)="Ok()">
    <div *ngIf="operaType === 'add' || operaType === 'edit'">
        <nz-descriptions nzBordered nzSize="small">
            <nz-descriptions-item nzTitle="线别 *" [nzSpan]="3">
                <nz-select style="width:465px" nzAllowClear [compareWith]="compareFn"  nzPlaceHolder="请选择线别" [(ngModel)]="operaData.line">
                    <nz-option *ngFor="let item of xbList" [nzValue]="item" [nzLabel]="item.name"></nz-option>
                </nz-select>
            </nz-descriptions-item>
            <nz-descriptions-item nzTitle="车间/工区/车站 *" [nzSpan]="3">
                <nz-select class="wd" nzAllowClear class="wd150" (ngModelChange)="chejianChange($event)"
                    [(ngModel)]="operaData.wsOrgId">
                    <ng-container *ngFor="let data of chejianList">
                        <nz-option nzCustomContent [nzValue]="data.opValue" [nzLabel]="data.opName">
                            {{data.opName}}
                        </nz-option>
                    </ng-container>
                </nz-select>&nbsp;
                <nz-select *ngIf="gongquIf" nzAllowClear class="wd150" (ngModelChange)="gongquChange($event)"
                    [(ngModel)]="operaData.waOrgId">
                    <ng-container *ngFor="let data of gongquList">
                        <nz-option nzCustomContent [nzValue]="data.opValue" [nzLabel]="data.opName">
                            {{data.opName}}
                        </nz-option>
                    </ng-container>
                </nz-select>&nbsp;
                <nz-select *ngIf="chezhanIf" nzAllowClear class="wd150" [(ngModel)]="operaData.stationId">
                    <ng-container *ngFor="let data of chezhanList">
                        <nz-option nzCustomContent [nzValue]="data.opValue" [nzLabel]="data.opName">
                            {{data.opName}}
                        </nz-option>
                    </ng-container>
                </nz-select>
            </nz-descriptions-item>
            <nz-descriptions-item nzTitle="备注" [nzSpan]="3">
                <input style="width:465px" nz-input [(ngModel)]="operaData.breaks" placeholder="请输入备注">
            </nz-descriptions-item>
            <nz-descriptions-item nzTitle="图纸名称 *" [nzSpan]="3">
                <input style="width:465px" nz-input [(ngModel)]="operaData.drawingName" placeholder="请输入图纸名称">
            </nz-descriptions-item>
            <nz-descriptions-item nzTitle="附件 *" [nzSpan]="3">
                <nz-upload [nzAction]="uploadUrl" [nzFileList]="fileList" (nzChange)="handleChange($event)">
                    <button nz-button>
                        <i nz-icon nzType="upload"></i>
                        上传
                    </button>
                </nz-upload>
            </nz-descriptions-item>
        </nz-descriptions>
    </div>
    <div *ngIf="operaType === 'del'">
        确定要删除这 <span style="font-weight:bold;color:#ff0000">{{thisData.count}}</span> 条数据吗？
    </div>
</nz-modal>